package com.merelyb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by LiM on 2017/12/9.
 */
@Controller
public class IndexController {
    /**
     * 起始页
     *
     * @return
     */
    @RequestMapping("index.do")
    public String getIndex(HttpServletRequest request) {
        return "JSP/index";
    }

    /**
     * 欢迎页
     * @param request
     * @return
     */
    @RequestMapping("welcome.do")
    public String getInfos(HttpServletRequest request){
        return "JSP/welcome";
    }

    /**
     * 登录页
     * @param request
     * @return
     */
    @RequestMapping("login.do")
    public String getLogin(HttpServletRequest request){
        return "JSP/login";
    }

    @RequestMapping("regist.do")
    public String getRegist(HttpServletRequest request){
        return "JSP/regist";
    }



}
